package com.itqian.system.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;

/**
 * @author shishuqian
 * date 2022/3/21
 * time 14:41
 **/
@Data
public class UserRegisterForm {

    @NotBlank(message = "用户名不能为空")
    @Size(max = 32,message = "用户名长度最大为32")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "昵称不能为空")
    @Size(max = 32,message = "昵称长度最大为32")
    private String nickname;
}
